package com.guigu.www.dao.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 疾病库
 * </p>
 *
 * @author abo
 * @since 2021-06-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TDiseaseLibrary extends Model<TDiseaseLibrary> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 编码
     */
    private String code;
    /**
     * 疾病名称
     */
    private String name;
    /**
     * 就诊科室id,引用就诊科室表的id
     */
    private Integer clinicDepartmentId;
    /**
     * 预警等级
     */
    private String warningLevel;
    /**
     * 就医期限
     */
    private String medicalTreatmentPeriod;
    /**
     * 异常类型
     */
    private String exceptionTypes;
    /**
     * 是否职业病，0是，1否
     */
    private Integer occupationalDisease;
    /**
     * 适用性别，0男，1女
     */
    private Integer gender;
    /**
     * 其他名称
     */
    private String otherName;
    /**
     * 医学解释
     */
    private String medicalInterpretation;
    /**
     * 常见原因
     */
    private String reason;
    /**
     * 建议
     */
    private String advise;
    /**
     * 创建时间
     */
    private String createTime;
    /**
     * 修改时间
     */
    private String updateTime;

    @TableField(exist = false)
    private TClinicDepartment clinicDepartment;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
